cmake_minimum_required(VERSION 3.2)

project(gvimfullscreen)
message("${CMAKE_MODULE_PATH}")

file(GLOB sources RELATIVE ${CMAKE_SOURCE_DIR} src/*.c)

add_library(gvimfullscreen SHARED ${sources} )
target_link_libraries(gvimfullscreen user32.lib Gdi32.lib legacy_stdio_definitions.lib)

set_target_properties(gvimfullscreen PROPERTIES OUTPUT_NAME "gvimfullscreen.x64")
message(STATUS "OUTPUT directory is ${CMAKE_SOURCE_DIR}/lib")
install(TARGETS gvimfullscreen DESTINATION ${CMAKE_SOURCE_DIR}/lib)
